package cn.edu.swu.pager;

import cn.edu.swu.book.BOOK;

import java.util.List;

public class Pager {
    private int totalPages;
    private int pageSize;
    private int curPage;
    private List<BOOK> books;

    public Pager(){}

    public Pager(int totalPages, int pageSize, int curPage) {
        this.totalPages = totalPages;
        this.pageSize = pageSize;
        this.curPage = curPage;
    }

    public int getTotalPages() {
        return totalPages;
    }

    public int getPageSize() {
        return pageSize;
    }

    public int getCurPage() {
        return curPage;
    }

    public void setTotalPages(int totalPages) {
        this.totalPages = totalPages;
    }

    public void setPageSize(int pageSize) {
        this.pageSize = pageSize;
    }

    public void setCurPage(int curPage) {
        this.curPage = curPage;
    }

    public List<BOOK> getBooks() {
        return books;
    }

    public void setBooks(List<BOOK> books) {
        this.books = books;
    }
}
